package top.lishuoboy.spring.bean_di;

import lombok.ToString;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@ToString
public class Student11 {
    @Autowired
//    @Resource
    private Dog dog;

    /* 私有化构造器也能注入 */
    private Student11() {
    }
}